package com.hw.paltfrom.controller.mainscreen;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hw.paltfrom.service.mainscreen.CenterScreenServer;

@RestController
@RequestMapping(value = "/centerScreen")
public class CenterScreenController {
	@Autowired
	private CenterScreenServer server;


	@RequestMapping(value = "/queryStations")
	public Map<String, Object> queryStations() {
		return server.queryStations();
	}
	@RequestMapping(value = "/queryEnterprises")
	public Map<String, Object> queryEnterprises() {
		return server.queryEnterprises();
	}
	@RequestMapping(value = "/queryOffsite")
	public Map<String, Object> queryOffsite() {
		return server.queryOffsite();
	}
	
	@RequestMapping(value = "/queryCars")
	public Map<String, Object> queryCars() {
		return server.queryCars();
	}

	//	查全市最近10条创建检查督导任务流。
	@RequestMapping("createdSvTasks")
	public Map<String,Object> querycreatedSvTasks(){
		return server.queryCreatedSvTasks();
	}
	//	查全市最近10条更新检查督导任务流。
	@RequestMapping("updateSvTasks")
	public Map<String,Object> queryUpdateSvTasks(){
		return server.queryUpdateSvTasks();
	}

	//	查全市最近10条创建指挥调度任务流。
	@RequestMapping("createdZhddTasks")
	public Map<String,Object> queryCreatedZhddTasks(){
		return server.queryCreatedZhddTasks();
	}

	//	查全市最近10条更新 指挥调度任务流。
	@RequestMapping("updateZhddTasks")
	public Map<String,Object> queryUpdateZhddTasks(){
		return server.queryUpdateZhddTasks();
	}
}
